package com.uzai.console.constant;

import com.google.common.collect.Lists;

import java.util.ArrayList;

/**
 * 相关常量.
 *
 * @author
 */
public class Const {
    public interface Uri {
        String API_URI_HTTP = "http://api.weixin.qq.com";
        String API_URI = "https://api.weixin.qq.com";
        String FILE_URI = "http://file.api.weixin.qq.com";
        String MP_URI = "https://mp.weixin.qq.com";
        String MCH_URI = "https://api.mch.weixin.qq.com";
        String OPEN_URI = "https://open.weixin.qq.com";
    }

    public interface Charset {
        String UTF_8 = "UTF-8";
        String ISO_8859_1 = "iso-8859-1";
    }

    public interface Lang {
        String ZH_CN = "zh_CN";
    }

    public interface Device{
        Integer HEART_BEAT_OFF_LINE_TIME= 300;                 //心跳时间，大于此时间，表示设备已离线
        Integer UPDATE_VERSION_VALIDITY_TIME= 300;              //更新版本有效时间，大于此时间，表示更新失败
        Integer DEVICE_DAT_FREE_DURATION = 5;                   //机器人试用期5天
        Integer DEVICE_MOBILE_BATTERYLEVEL_ALARM = 20;          //手机移动端电量报警值
        //机器人移动端软件APP授权
        String MOBILE_APP_CID = "1001";
        String MOBILE_APP_PACKAGENAME = "com.shiyao.imscrm";          //个微包名
        String MOBILE_APP_PACKAGENAME_WXWORK = "com.shiyao.imscrm"; //企微包名
        String MOBILE_APP_EXPIRE_TIME = "2030-12-30";
        String REGCODE_FREE = "524DC1086113E42C55"; //试用卡密
    }

    //订单商品链接
    public interface ItemUrl {
        //淘宝商品链接
        String TB = "https://item.taobao.com/item.htm?id=%s";
        //淘宝新版商品链接
        String TB_NEW = "https://uland.taobao.com/item/edetail?id=%s";
        //京东商品链接
        String JD = "https://item.jd.com/%s.html";
        // 京东新版商品链接
        String JD_NEW = "https://jingfen.jd.com/detail/%s.html";
        //拼多多商品链接
        String PDD = "https://mobile.yangkeduo.com/goods2.html?goods_id=%s";
        //抖音商品链接
        String DY = "https://haohuo.jinritemai.com/views/product/item2?id=%s";
        //唯品会商品链接
        String VPH = "https://detail.vip.com/detail-0-%s.html";
        //快手商品链接
        String KS = "https://ac31.suvmothq.com/page/kwaishop-buyer-goods-detail-outside?id=%s";
    }

    //订单图片链接
    public interface OrderImageUrl {
        //淘宝图片链接
        String TB = "https://yzimage.52youzai.net/600c5c6738ff4bc7a30380436be10414.png";
        //京东图片链接
        String JD = "https://yzimage.52youzai.net/ed8c76350d4a4b83841e70e5974cd689.png";
        //拼多多图片链接
        String PDD = "https://yzimage.52youzai.net/3350caf0d5ee45a4848098f45d26b0e6.png";
        //唯品会商品链接
        String VPH = "https://yzimage.52youzai.net/eed0a751b82544a896e7a82228fd021d.png";
    }

    //悠聊
    public interface Uzaichat {
        //默认头像地址
        String HEAD_IMG_URL = "http://yzimage.52youzai.net/59283bc9f272401ab41f57a49c30b59e.png";
    }

    //SMS短信验证
    public interface SmsType {
        //显示个人微信通信录微信id，_merId
        String CMSTYPE_WXCONTACTS_WXID_VERIFIED = "console_sms_werified_wxcontacts_wxid_%s";
        //显示个人微信会员详情微信id，_merId_userId
        String CMSTYPE_WECHATUSER_WXID_VERIFIED = "console_sms_werified_wechatUser_wxid_%s_%s";
        //显示个人微信好友请求微信id，_merId
        String CMSTYPE_REQESTUSERS_WXID_VERIFIED = "console_sms_werified_reqestusers_wxid_%s";
        //显示微信群成员wxid
        String CMSTYPE_GROUP_MEMBER_WXID = "console_sms_werified_group_member_wxid_%s";
        //提现列表显示支付宝信息
        String CMSTYPE_TAKEBAL_ALIPAY = "console_sms_werified_takebal_alipay_%s";
        //显示淘礼金appsecret
        String CMSTYPE_AMOY_GOLD_APP_SECRET = "console_sms_werified_amoy_gold_app_secret_%s";
        //显示淘礼金appsecret
        String CMSTYPE_USER_MOBILE = "console_sms_werified_user_mobile_%s";
    }

    //个人支付宝转账
    public interface AlipayMchBatch {
        //默认头像地址
        int effective_time = 30;//分钟
    }

    //个人支付宝转账
    public interface WxContactsGroupSend {
        //群发助手消息打包数
        int GROUPSENDMSG_PACKAGE_NUM = 200;
        //群发助手消息延迟30分钟
        int GROUPSENDMSG_DELAY = 600;
    }

    //运营商配置
    public interface Merchant{
        //注册运营商时other_es_index默认值
        String REGIST_OTHER_ES_INDEX  = "[{\"enable\":1,\"id\":15,\"key\":\"wx_contacts\"},{\"enable\":1,\"id\":15,\"key\":\"uzai_wx_group_member\"},{\"enable\":1,\"id\":15,\"key\":\"uzai_group_send_msg\"},{\"enable\":1,\"id\":15,\"key\":\"uzai_pyq_job_detail\"}]";
    }


    //订单商品链接
    public interface SystemUrl {
        //CMS首页
        String CMS_HOME_URL = "/pages/index/index";
        //个人中心
        String CMS_PERSONAL_CENTER_URL = "/pages/mine/index";
        //免单活动连接
        String MD_ACTIVITY_URL = "/pages_other/free/activity/index?activityId=%s";

    }

    //excel导出表格条数
    public interface ExprotFile {
        //CMS首页
        int EXPORT_EXCEL_MAX_NUM = 10000;


    }

    //订单商品链接
    public interface Pyq {
        //CMS首页
        ArrayList<String> turnlinkErrMsgList = Lists.newArrayList("请检查site_id和adzone_id是否匹配");


    }

    //订单商品链接
    public interface ZonbieFan {
        //发送内容
        String content = "wxib_abcd6612168";
        //不需要修改备注的缓存内容
        String notUpdateRemark = "notUpdateRemark";
        //企业微信发送获取僵尸粉接口内容
        String content_wxwork = "GETZOMBIELIST";
    }

    //订单图片链接
    public interface PyqFirstImg {
        //视频号默认图片
        String SHIPINHAO = "http://youzai30.oss-cn-shanghai.aliyuncs.com/resource/imgs/yys3_0/videoPreview.png";
    }

    //手机号归属地查询
    public interface Mobiletype {
        String url = "https://service-ltxou7bj-1253454403.sh.apigw.tencentcs.com/release/mobile/address";
        String SecretID = "AKID2ii1bL8bMadeEzQpO226aWrlfhgVo642PY6";
        String SecretKey = "aK4VLgJi595HqCmfyzpw1BHSAO4nmF5Oy4YueJ7G";
    }


}
